package com.appspot.didit.client.workitem;

import com.google.gwt.event.shared.GwtEvent;

public class WorkitemCreatedEvent extends GwtEvent<WorkitemCreatedHandler> {

    private static Type<WorkitemCreatedHandler> TYPE;

    public static Type<WorkitemCreatedHandler> getType() {
            return TYPE != null ? TYPE
                            : (TYPE = new Type<WorkitemCreatedHandler>());
    }

    public WorkitemCreatedEvent() {
    }

    @Override
    public final Type<WorkitemCreatedHandler> getAssociatedType() {
            return getType();
    }

    @Override
    protected void dispatch(WorkitemCreatedHandler handler) {
            handler.onWorkitemCreated(this);
    }

}